﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using JM.JCY.BusinessEntity;
using JM.JCY.Proxy;
using NCS.IConnect.ApplicationContexts;
using JM.JCY.Common;
using JM.JCY.Common.Utilities;
using Microsoft.SharePoint;

namespace JM.JCY.SharePointComponent.IncorruptArchives.CreateLianZhengLianJieCheck
{
    public partial class CreateLianZhengLianJieCheckUserControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }
        }

        protected void imgSubmit_Click(object sender, ImageClickEventArgs e)
        {
            using (IncorruptProxy proxy = new IncorruptProxy())
            {
                var newDT =new IncorruptDataSet.T_LianZhengLianjieCheckDataTable();
                var newRow = newDT.NewT_LianZhengLianjieCheckRow();

                newRow.SignBy = this.txtSignBy.Text;
                newRow.SignDate = this.dtSignDate.SelectedDate;
                //廉洁从政项目
                newRow.Option1_1 = this.rbOption1_1.SelectedValue;
                newRow.Option1_2 = this.rbOption1_2.SelectedValue;
                newRow.Option1_3 = this.rbOption1_3.SelectedValue;
                newRow.Option1_4 = this.rbOption1_4.SelectedValue;
                newRow.Option1_5 = this.rbOption1_5.SelectedValue;
                newRow.Option1_6 = this.rbOption1_6.SelectedValue;
                newRow.Option1_7 = this.rbOption1_7.SelectedValue;
                newRow.Option1_8 = this.rbOption1_8.SelectedValue;
                newRow.Option1_9 = this.rbOption1_9.SelectedValue;
                newRow.Option1_10 = this.rbOption1_10.SelectedValue;
                newRow.Option1_11 = this.rbOption1_11.SelectedValue;
                newRow.Option1_12 = this.rbOption1_12.SelectedValue;
                newRow.Option1_13 = this.rbOption1_13.SelectedValue;
                newRow.Option1_14 = this.rbOption1_14.SelectedValue;
                newRow.Option1_15 = this.rbOption1_15.SelectedValue;
                newRow.Option1_16 = this.rbOption1_16.SelectedValue;
                newRow.Option1_17 = this.rbOption1_17.SelectedValue;
                newRow.Option1_18 = this.rbOption1_18.SelectedValue;
                newRow.Option1_19 = this.rbOption1_19.SelectedValue;
                newRow.Option1_20 = this.rbOption1_20.SelectedValue;
                newRow.Option1_21 = this.rbOption1_21.SelectedValue;
                newRow.Option1_22 = this.rbOption1_22.SelectedValue;
                newRow.Option1_23 = this.rbOption1_23.SelectedValue;
                newRow.Option1_24 = this.rbOption1_24.SelectedValue;
                newRow.Option1_25 = this.rbOption1_25.SelectedValue;
                newRow.Option1_26 = this.rbOption1_26.SelectedValue;
                newRow.Option1_27 = this.rbOption1_27.SelectedValue;
                newRow.Option1_28 = this.rbOption1_28.SelectedValue;
                newRow.Option1_29 = this.rbOption1_29.SelectedValue;
                newRow.Option1_30 = this.rbOption1_30.SelectedValue;
                newRow.Option1_31 = this.rbOption1_31.SelectedValue;
                newRow.Option1_32 = this.rbOption1_32.SelectedValue;
                newRow.Option1_33 = this.rbOption1_33.SelectedValue;
                newRow.Option1_34 = this.rbOption1_34.SelectedValue;
                newRow.Option1_35 = this.rbOption1_35.SelectedValue;
                newRow.Option1_36 = this.rbOption1_36.SelectedValue;
                newRow.Option1_37 = this.rbOption1_37.SelectedValue;
                newRow.Option1_38 = this.rbOption1_38.SelectedValue;
                newRow.Option1_39 = this.rbOption1_39.SelectedValue;
                newRow.Option1_40 = this.rbOption1_40.SelectedValue;
                newRow.Option1_41 = this.rbOption1_41.SelectedValue;
                newRow.Option1_42 = this.rbOption1_42.SelectedValue;
                newRow.Option1_43 = this.rbOption1_43.SelectedValue;
                newRow.Option1_44 = this.rbOption1_44.SelectedValue;
                newRow.Option1_45 = this.rbOption1_45.SelectedValue;
                newRow.Option1_46 = this.rbOption1_46.SelectedValue;
                newRow.Option1_47 = this.rbOption1_47.SelectedValue;
                newRow.Option1_48 = this.rbOption1_48.SelectedValue;
                newRow.Option1_49 = this.rbOption1_49.SelectedValue;
                newRow.Option1_50 = this.rbOption1_50.SelectedValue;
                newRow.Option1_51 = this.rbOption1_51.SelectedValue;
                newRow.Option1_52 = this.rbOption1_52.SelectedValue;

                //廉洁从检项目
                newRow.Option2_1 = this.rbOption2_1.SelectedValue;
                newRow.Option2_2 = this.rbOption2_2.SelectedValue;
                newRow.Option2_3 = this.rbOption2_3.SelectedValue;
                newRow.Option2_4 = this.rbOption2_4.SelectedValue;
                newRow.Option2_5 = this.rbOption2_5.SelectedValue;
                newRow.Option2_6 = this.rbOption2_6.SelectedValue;
                newRow.Option2_7 = this.rbOption2_7.SelectedValue;
                newRow.Option2_8 = this.rbOption2_8.SelectedValue;
                newRow.Option2_9 = this.rbOption2_9.SelectedValue;
                newRow.Option2_10 = this.rbOption2_10.SelectedValue;
                newRow.Option2_11 = this.rbOption2_11.SelectedValue;
                newRow.Option2_12 = this.rbOption2_12.SelectedValue;
                newRow.Option2_13 = this.rbOption2_13.SelectedValue;
                newRow.Option2_14 = this.rbOption2_14.SelectedValue;
                newRow.Option2_15 = this.rbOption2_15.SelectedValue;
                newRow.Option2_16 = this.rbOption2_16.SelectedValue;
                newRow.Option2_17 = this.rbOption2_17.SelectedValue;
                newRow.Option2_18 = this.rbOption2_18.SelectedValue;
                newRow.Option2_19 = this.rbOption2_19.SelectedValue;
                newRow.Option2_20 = this.rbOption2_20.SelectedValue;
                newRow.Option2_21 = this.rbOption2_21.SelectedValue;
                newRow.Option2_22 = this.rbOption2_22.SelectedValue;
                newRow.Option2_23 = this.rbOption2_23.SelectedValue;
                newRow.Option2_24 = this.rbOption2_24.SelectedValue;
                newRow.Option2_25 = this.rbOption2_25.SelectedValue;
                newRow.Option2_26 = this.rbOption2_26.SelectedValue;
                newRow.Option2_27 = this.rbOption2_27.SelectedValue;
                newRow.Option2_28 = this.rbOption2_28.SelectedValue;
                newRow.Option2_29 = this.rbOption2_29.SelectedValue;
                newRow.Option2_30 = this.rbOption2_30.SelectedValue;
                newRow.Option2_31 = this.rbOption2_31.SelectedValue;
                newRow.Option2_32 = this.rbOption2_32.SelectedValue;
                newRow.Option2_33 = this.rbOption2_33.SelectedValue;
                newRow.Option2_34 = this.rbOption2_34.SelectedValue;
                newRow.Option2_35 = this.rbOption2_35.SelectedValue;
                newRow.Option2_36 = this.rbOption2_36.SelectedValue;
                newRow.Option2_37 = this.rbOption2_37.SelectedValue;
                newRow.Option2_38 = this.rbOption2_38.SelectedValue;
                newRow.Option2_39 = this.rbOption2_39.SelectedValue;
                newRow.Option2_40 = this.rbOption2_40.SelectedValue;
                newRow.Option2_41 = this.rbOption2_41.SelectedValue;
                newRow.Option2_42 = this.rbOption2_42.SelectedValue;
                newRow.Option2_43 = this.rbOption2_43.SelectedValue;
                newRow.Option2_44 = this.rbOption2_44.SelectedValue;
                newRow.Option2_45 = this.rbOption2_45.SelectedValue;
                newRow.Option2_46 = this.rbOption2_46.SelectedValue;
                newRow.Option2_47 = this.rbOption2_47.SelectedValue;
                newRow.Option2_48 = this.rbOption2_48.SelectedValue;
                newRow.Option2_49 = this.rbOption2_49.SelectedValue;
                newRow.Option2_50 = this.rbOption2_50.SelectedValue;
                newRow.Option2_51 = this.rbOption2_51.SelectedValue;
                newRow.Option2_52 = this.rbOption2_52.SelectedValue;
                newRow.Option2_53 = this.rbOption2_53.SelectedValue;
                newRow.Option2_54 = this.rbOption2_54.SelectedValue;
                newRow.Option2_55 = this.rbOption2_55.SelectedValue;
                newRow.Option2_56 = this.rbOption2_56.SelectedValue;
                newRow.Option2_57 = this.rbOption2_57.SelectedValue;
                newRow.Option2_58 = this.rbOption2_58.SelectedValue;
                newRow.Option2_59 = this.rbOption2_59.SelectedValue;
                newRow.Option2_60 = this.rbOption2_60.SelectedValue;

                newRow.Remark2_1 = this.txtRemark2_1.Text;
                newRow.Remark2_2 = this.txtRemark2_2.Text;
                newRow.Remark2_3 = this.txtRemark2_3.Text;
                newRow.Remark2_4 = this.txtRemark2_4.Text;
                newRow.Remark2_5 = this.txtRemark2_5.Text;
                newRow.Remark2_6 = this.txtRemark2_6.Text;
                newRow.Remark2_7 = this.txtRemark2_7.Text;
                newRow.Remark2_8 = this.txtRemark2_8.Text;
                newRow.Remark2_9 = this.txtRemark2_9.Text;
                newRow.Remark2_10 = this.txtRemark2_10.Text;
                newRow.Remark2_11 = this.txtRemark2_11.Text;
                newRow.Remark2_12 = this.txtRemark2_12.Text;
                newRow.Remark2_13 = this.txtRemark2_13.Text;
                newRow.Remark2_14 = this.txtRemark2_14.Text;
                newRow.Remark2_15 = this.txtRemark2_15.Text;
                newRow.Remark2_16 = this.txtRemark2_16.Text;
                newRow.Remark2_17 = this.txtRemark2_17.Text;
                newRow.Remark2_18 = this.txtRemark2_18.Text;
                newRow.Remark2_19 = this.txtRemark2_19.Text;
                newRow.Remark2_20 = this.txtRemark2_20.Text;
                newRow.Remark2_21 = this.txtRemark2_21.Text;
                newRow.Remark2_22 = this.txtRemark2_22.Text;
                newRow.Remark2_23 = this.txtRemark2_23.Text;
                newRow.Remark2_24 = this.txtRemark2_24.Text;
                newRow.Remark2_25 = this.txtRemark2_25.Text;
                newRow.Remark2_26 = this.txtRemark2_26.Text;
                newRow.Remark2_27 = this.txtRemark2_27.Text;
                newRow.Remark2_28 = this.txtRemark2_28.Text;
                newRow.Remark2_29 = this.txtRemark2_29.Text;
                newRow.Remark2_30 = this.txtRemark2_30.Text;
                newRow.Remark2_31 = this.txtRemark2_31.Text;
                newRow.Remark2_32 = this.txtRemark2_32.Text;
                newRow.Remark2_33 = this.txtRemark2_33.Text;
                newRow.Remark2_34 = this.txtRemark2_34.Text;
                newRow.Remark2_35 = this.txtRemark2_35.Text;
                newRow.Remark2_36 = this.txtRemark2_36.Text;
                newRow.Remark2_37 = this.txtRemark2_37.Text;
                newRow.Remark2_38 = this.txtRemark2_38.Text;
                newRow.Remark2_39 = this.txtRemark2_39.Text;
                newRow.Remark2_40 = this.txtRemark2_40.Text;
                newRow.Remark2_41 = this.txtRemark2_41.Text;
                newRow.Remark2_42 = this.txtRemark2_42.Text;
                newRow.Remark2_43 = this.txtRemark2_43.Text;
                newRow.Remark2_44 = this.txtRemark2_44.Text;
                newRow.Remark2_45 = this.txtRemark2_45.Text;
                newRow.Remark2_46 = this.txtRemark2_46.Text;
                newRow.Remark2_47 = this.txtRemark2_47.Text;
                newRow.Remark2_48 = this.txtRemark2_48.Text;
                newRow.Remark2_49 = this.txtRemark2_49.Text;
                newRow.Remark2_50 = this.txtRemark2_50.Text;
                newRow.Remark2_51 = this.txtRemark2_51.Text;
                newRow.Remark2_52 = this.txtRemark2_52.Text;
                newRow.Remark2_53 = this.txtRemark2_53.Text;
                newRow.Remark2_54 = this.txtRemark2_54.Text;
                newRow.Remark2_55 = this.txtRemark2_55.Text;
                newRow.Remark2_56 = this.txtRemark2_56.Text;
                newRow.Remark2_57 = this.txtRemark2_57.Text;
                newRow.Remark2_58 = this.txtRemark2_58.Text;
                newRow.Remark2_59 = this.txtRemark2_59.Text;
                newRow.Remark2_60 = this.txtRemark2_60.Text;

                JCYUtility.UpdateCommonFields(newRow, "Iori");
                newDT.AddT_LianZhengLianjieCheckRow(newRow);
                proxy.UpdateLianZhengLianJieCheck(newDT);

                Response.Redirect("LianZhengLianJieCheck.aspx");
            }
        }

        protected void imgCancel_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("LianZhengLianJieCheck.aspx");
        }
    }
}
